<form id="tagForm">
    <input name="id" type="hidden" th:value="${tag?.id}">
    <div class="form-group row">
        <label for="name" class="col-sm-2 col-form-label">标签名称</label>
        <div class="col-sm-10">
            <input type="text" th:value="${tag?.name}" name="name" class="form-control" id="name"
                   placeholder="填写分类名称" required>
            <div class="invalid-feedback">请填写标签名称</div>
        </div>
    </div>
    <div class="form-group row">
        <label for="description" class="col-sm-2 col-form-label">标签描述</label>
        <div class="col-sm-10">
            <input type="text" th:value="${tag?.description}" name="description" class="form-control"
                   id="description"
                   placeholder="填写分类描述" required>
            <div class="invalid-feedback">请填写标签描述</div>
        </div>
    </div>
</form>